<div id="leftMenu">
    <#list menuList?keys as key>
        <ul class="sidebar-menu hide" data-widget="tree"  id="leftMenu-${key}">
            <li class="header"></li>
            <#list menuList[key] as menu>
                <li class="treeview">
                    <#if menu.type == 0>
                        <a href="javascript:;" title="<@ctx.i18n text = "${menu.name}" />">
                            <#if menu.icon??><i class="${menu.icon}"></i></#if>
                            <span><@ctx.i18n text = "${menu.name}" /></span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                    </#if>
                    <ul class="treeview-menu">
                        <#if menu.children?? && (menu.children?size>0)>
                            <#list menu.children as m>
                                <li>
                                    <#if m.type == 1>
                                        <a href="javascript:;" data-url="${m.url}" data-module="${key}" data-target="${m.target?default("")}" data-id="${m.mId}" title="<@ctx.i18n text = "${m.name}" />">
                                            <#if m.icon??><i class="${m.icon}" data-icon="${m.icon}"></i></#if>
                                            <span><@ctx.i18n text = "${m.name}" /></span>
                                            <#if m.mNew><span class="pull-right-container"><small data-index="_new" class="label pull-right bg-red"><@ctx.i18n text = "新" /></small></span></#if>
                                        </a>
                                    </#if>
                                </li>
                            </#list>
                        </#if>
                    </ul>
                </li>
            </#list>
        </ul>
    </#list>
</div>
